package com.java.jvm.bytecode;

import com.sun.tools.attach.VirtualMachine;

import java.lang.management.ManagementFactory;

public class AgentInstrumentTests {
    public static void main(String[] args) throws Exception{
        // 传入目标 JVM pid
        VirtualMachine vm = VirtualMachine.attach("4328");
        vm.loadAgent("E:/TCGBIV/DEVCODES/CGB2112CODES/01-java/target/01-java-1.0-SNAPSHOT.jar");
    }
}
